<template>
  <div id="app" v-loading="loading" element-loading-text="试用到期">
    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      timer: null,
      loading: false,
    };
  },
  mounted() {
    // this.timer = setInterval(() => {
    //   this.lockApp();
    // }, 1000);
  },
  methods: {
    // 锁
    lockApp() {
      let ndate = Date.parse(new Date());
      let odate = Date.parse(new Date("2023-12-17 22:00:00"));

      if (odate > ndate) {
      } else {
        this.loading = true;
        clearInterval(this.timer);
      }
    },
  },
};
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

div {
  box-sizing: border-box;
}
</style>
